/*
 * @Descripttion: 积分发行管理
 * @Author: binbin binbin@ssc-hn.com
 * @Date: 2025-03-17
 * @LastEditors: Bart 1714877505@qq.com
 * @LastEditTime: 2025-03-20
 */
import request from '/@/api/request'

/** 获取积分发行管理列表 */
export const requestGetIntegralIssuerList = (data: GetIntegralIssuerListTypes.IRequest) => {
  return request.post<IBaseResponse<GetIntegralIssuerListTypes.IResponse[]>>('/bankSaasWallet/admin/coinAduit/coinAuditInfoPage', data)
}

/** 保存/编辑/发行记录 */
export const requestSaveIntegralIssuer = (data: GetIntegralIssuerInfoTypes.IResponse) => {
  return request.post<IBaseResponse<SaveIntegralIssuerTypes.IResponse[]>>('/bankSaasWallet/admin/coinAduit/issueCoin', data)
}

/** 获取积分发行信息 */
export const requestGetCoinAuditInfo = (data: GetIntegralIssuerInfoTypes.IRequest) => {
  return request.get<IBaseResponse<GetIntegralIssuerInfoTypes.IResponse>>(`/bankSaasWallet/admin/coinAduit/getCoinAuditInfoById`, data)
}

/** 撤销审核 */
export const requestRevokeTask = (data: GetRevokeTaskTypes.IRequest) => {
  return request.post<IBaseResponse<GetRevokeTaskTypes.IResponse[]>>('/bankSaasWallet/admin/process/revokeTask', data)
}

/** 积分销毁 */
export const requestDestroyPoints = (data: GetDestroyPointsTypes.IRequest) => {
  return request.post<IBaseResponse<GetDestroyPointsTypes.IResponse[]>>('/bankSaasWallet/admin/coinAduit/destroyPoints', data)
}

/** 积分增发 */
export const requestMintPoints = (data: GetDestroyPointsTypes.IRequest) => {
  return request.post<IBaseResponse<GetDestroyPointsTypes.IResponse[]>>('/bankSaasWallet/admin/coinAduit/mintPoints', data)
}

/** 查询机构列表 */
export const requestGetCompanyList = (data: GetCompanyListTypes.IRequest) => {
  return request.post<IBaseResponse<GetCompanyListTypes.IResponse[]>>('/business/company/companyListV2', data)
}

/** 查询审批记录 */
export const requestGetTaskRecord = (data: GetTaskRecord.IRequest) => {
  return request.post<IBaseResponse<GetTaskRecord.IResponse>>('/bankSaasWallet/admin/process/getTaskRecord', data)
}
